package util

import (
	"github.com/crack007/go-im/src/common/constant"
	"strings"
)

func GetNodePath(nodeName string) string {
	return constant.NodePath + nodeName
}

func GetNodeName(node string, serviceNode string) string {
	return strings.ReplaceAll(node, serviceNode, "")
}
